package com.kch.system.service.impl;

import com.kch.system.domain.JoinUs;
import com.kch.system.mapper.JoinUsMapper;
import com.kch.system.service.IJoinUsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JoinUsServiceImpl implements IJoinUsService {

    @Autowired
    private JoinUsMapper joinUsMapper;

    @Override
    public List<JoinUs> selectList() {
        return joinUsMapper.selectList();
    }

    @Override
    public int insertJoinUs(JoinUs joinUs) {
        return joinUsMapper.insert(joinUs);
    }

    @Override
    public int deleteById(String id) {
        return joinUsMapper.deleteByPrimaryKey(Integer.valueOf(id));
    }

    @Override
    public JoinUs selectById(Integer id) {
        return joinUsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateById(JoinUs joinUs) {
        return joinUsMapper.updateByPrimaryKeyWithBLOBs(joinUs);
    }
}
